package edu.sctu.practice.class01.wujiayi.assing03.practice02;

/**
 * Created by acer1 on 2015/10/24.
 */
public class Max {
    public static Comparable max(Comparable o1, Comparable o2){
        if (o1.compareTo(o2) == 0){
            System.out.println("第一个类面积较大");
            return o1;
        }else {
            System.out.println("第二个类面积较大");
            return o2;
        }

    }
}
